//
//  TimeTool.h
//  if_wapeng
//
//  Created by 早上好 on 14-9-25.
//  Copyright (c) 2014年 funeral. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TimeTool : NSObject
// 获取当前时间戳
+(NSTimeInterval )nowTimeStamp;

+(NSString *)dateToString:(NSString *)time;

+(NSString *)timeStampToString:(long long)timeStamp;

+(NSString *)getUTCFormateDate:(NSString *)newsDate;//计算多少天前

+(NSString *)timeStrTransverterSince1970Time:(NSString *)timeStr;

+(NSDate *)timeStrTransverterDate:(NSString *)timeStr;

/**活动模块计算宝宝年龄**/
+(NSMutableString *)getBabyAgeWithBirthday:(NSString *)brithday publicTime:(NSString *)publicTime;
/**话题关闭**/
+(BOOL)limitTime:(NSString *)limitTime;

/**发布活动 选择有效时间 15天， 计算15天后的日期**/

+(NSString *)getmyLimitTime:(NSString *)string;
/**获取当前时间戳**/
+(NSString *)since1970Time;
/**传入NSDate返回时间**/
+(NSString *)getTimeWithDate:(NSDate *)date;
+(NSString *)getTimeWithDate2:(NSDate *)date;
/**获取当前时间字符串**/
+(NSString *)nowTimeStr;

+(NSString *)nowTimeStr2;

/**获取当前时间字符串  2020-04-24 13:28:50  **/
+(NSString *)nowTimeStr3;


+(NSString*)OSTime;

+(NSTimeInterval)getTimeStampByDate:(NSString *)dateStr;
/**传入NSDate返回时间**/

+(NSString *)getTimeWithDate:(NSDate *)date andFormatterString:(NSString *)formatterString;
@end
